package com.pym.Mapper;

import com.github.pagehelper.PageInfo;
import com.pym.pojo.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BookMapper {
    boolean deleteByPrimaryKey(Integer id);

    boolean insert(Book record);

    int insertSelective(Book record);

    Book selectByPrimaryKey(Integer id);

    boolean updateByPrimaryKeySelective(Book record);

    int updateByPrimaryKey(Book record);

    List<Book> findBookAll();

    List<Book> finBooAllByCurrentPageAndPageSize(@Param("currentPage") int CurrentPage, @Param("PageSize") int PageSize);

   List<Book> finBooAllByCurrentPageAndPageSizeAndBook(@Param("book") Book book);
}